<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$pageTitle}</title>

<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Content-Language" content="et_EE"/>
<meta name="author" content="{$metaAuthor}"/>
<meta name="description" content="{$metaDescription}"/>
<meta name="keywords" content="{$metaKeywords}"/>
<meta name="revisit-after" content="3 days"/>
<meta name="audience" content="all"/>
<meta name="robots" content="all, index, follow"/>
<meta name="allow-search" content="yes"/>

<link href="{$templateUrl}css.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
	pageUrl = "{$pageUrl}";
	mediaUrl = "{$mediaUrl}";
</script>

</head>
<body>

<!-- begin #container -->
<div id="container">
	<!-- begin #header -->
    <div id="header">
		<div>
        	<div class="logo">
            	<span>T2NO2 - portal</span>
            </div>
            <div class="search"></div>
        </div>
        <div id="navcontainer">
            <ul id="navlist">
                <li id="active">{if $user}<a href="{$pageUrl}User/logout/" id="current">{$user.username} LOG OUT</a>{else}<a href="{$pageUrl}User/login/" id="current">LOGIN</a>{/if}</li>
                 {if $user}<li><a href="{$pageUrl}User/meterReadings/" >MeterReadings</a></li>
                 		   <li><a href="{$pageUrl}User/profile/" >Profile</a></li>
                 {/if}
            </ul>
            
        </div>
        <div><img src="{$mediaUrl}Site/headerPic.jpg" alt="" /></div>
    </div>
    <!-- end #header -->
    <!-- begin #mainContent -->
    <div id="mainContent">
  		{$contents}
        <br class="clearfloat" />
    </div>
    <!-- end #mainContent -->
</div>
<!-- end #container -->
<!-- begin #footer -->
<div id="footer">
    <div class="footerHeader"></div>
    <div class="footerBody">
    	<div class="copyright">
        <div style="text-align:left;">
		</div> 
        </div>
        <div class="footerIcons">
        </div>
    </div>
</div>


</body>
</html>